package com.lz.webflux.project.api.service;

import org.thymeleaf.TemplateEngine;
import org.thymeleaf.context.Context;

public class HtmlGenerator {

    public static String generateHtml() {
        TemplateEngine templateEngine = new TemplateEngine();
        Context context = new Context();
        context.setVariable("name", "World");
        return templateEngine.process("template.html", context);
    }

    public static void main(String[] args) {
        String html = generateHtml();
        System.out.println(html);
    }
}